#ifndef _APP_MTCHARGER_H_
#define _APP_MTCHARGER_H_

#include "sys_hc32f460.h"
#include "systemdata.h"


#define SANYUANNORMVOL 360  //三元的标称电压
#define TIELINORMVOL   320  //铁锂的标称电压

#define  READSW   0x01
#define  READREG  0x03

typedef enum{
	invalidDataType = 0x01,
	invalidAddress  = 0x02,
	invalidWrData   = 0x03,
	deviceBusy      = 0x06, 	
}MtErrCode;

void mt_charger_data(uint8_t *data,uint16_t len,uint8_t comNum);

#endif